This demo demonstrates how Columns in the bindinglist of an ElementHandle can be derived using code rather than an OCL expression. It also shows how a column can be resverse derived.
The model consists of a single class Product, with a single attribute Name.
ExpressionHandle1, which is shown in the grid, contains two derived columns in addition to the Namecolumn. Reversed, which shows Namebackwards and IsPalindrome, which a a derived boolean attribute that is true if Nameis a palindrome.
Note that all derivations for an ElementHandle use the same event handler, so the actual code needs to switch on the name of the column.